import request from '@/utils/request'

// 查询环鄱赛照片墙列表
export function listPhoto(query) {
  return request({
    url: '/hps/photo/list',
    method: 'get',
    params: query
  })
}

// 查询环鄱赛照片墙详细
export function getPhoto(id) {
  return request({
    url: '/hps/photo/' + id,
    method: 'get'
  })
}

// 新增环鄱赛照片墙
export function addPhoto(data) {
  return request({
    url: '/hps/photo',
    method: 'post',
    data: data
  })
}

// 照片墙添加照片
export function addImage(data) {
  return request({
    url: '/hps/photo/addImage',
    method: 'post',
    data: data
  })
}

// 修改环鄱赛照片墙
export function updatePhoto(data) {
  return request({
    url: '/hps/photo',
    method: 'put',
    data: data
  })
}

// 删除环鄱赛照片墙
export function delPhoto(id) {
  return request({
    url: '/hps/photo/' + id,
    method: 'delete'
  })
}

// 导出环鄱赛照片墙
export function exportPhoto(query) {
  return request({
    url: '/hps/photo/export',
    method: 'get',
    params: query
  })
}
